package com.cenwangkeji.resident.ui.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.cenwangkeji.resident.R;
import com.cenwangkeji.resident.model.bean.ServicePackageBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**服务包全部适配器
 * @松 on 2019/11/4 13:58
 */
public class ServicePackageAllAdpter extends BaseQuickAdapter<ServicePackageBean.DataBean, BaseViewHolder> {
    public ServicePackageAllAdpter(@Nullable List<ServicePackageBean.DataBean> data) {
        super(R.layout.item_service_package_all, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ServicePackageBean.DataBean item) {
          helper.setText(R.id.tv_name , "服务包名称："+item.getName());
          helper.setText(R.id.tv_content,"内容："+item.getContent());
          helper.setText(R.id.tv_number, "服务"+ item.getMember()+"人");
          helper.setText(R.id.tv_good_reputation, "好评率"+item.getFeedback()+"%");


    }
}
